home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / www_talk.930 / 000050_timbl _Mon Feb 24 17:21:19 1992.msg < prev    next >
Internet Message Format  |  1994-01-24  |  4KB

  1. Return-Path: <timbl>
  2. Received: by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  3.     id AA02717; Mon, 24 Feb 92 17:21:19 GMT+0100
  4. Date: Mon, 24 Feb 92 17:21:19 GMT+0100
  5. From: timbl (Tim Berners-Lee)
  6. Message-Id: <9202241621.AA02717@ nxoc01.cern.ch >
  7. Received: by NeXT Mailer (1.62)
  8. To: W.vanLeeuwen@nikhef.nl (Willem van Leeuwen)
  9. Subject: Re: www @ nikhef
  10. Cc: www-talk@nxoc01.cern.ch
  11.  
  12. Willem,
  13.  
  14. Great to see the NIKHEF server on the web!  For others on the list,
  15. see Willem's message below for examples of how to put together
  16. www servers, including indexes, out of simple shell scripts.
  17.  
  18. I have put links to NIKHEF from our home page, and from the subject and  
  19. organisation index.
  20.  
  21. There is one little bug in Xfind: the reference to //nic/ rather than //nic.nl./  
  22. will work for those in the Netherlands but not for the rest of us.
  23. (By the way, xfind is the name of a program by Bernd Pollermann which runs on VM  
  24. ... he might feel that the name is his.)
  25.  
  26. This is a neat server, particularly as it uses existing unix tools and data to  
  27. provide a useful service.... keep up the good work!
  28.  
  29.     Tim BL
  30.  
  31. ______________________________________________________________________
  32. Date: Thu, 20 Feb 92 14:58:11 +0100
  33. From: W.vanLeeuwen@nikhef.nl (Willem van Leeuwen)
  34. Organisation: Nikhef-H (National Institute for Nuclear and High-Energy Physics)
  35. Address: Kruislaan 409, P.O. Box 41882, 1009 DB Amsterdam, the Netherlands
  36. Phone: +31 20 5920411, +31 2995 2499 (home)
  37. Telex: 10262 hef nl
  38. Telefax: +31 20 5925155
  39. To: timbl@nxoc01.cern.ch (Tim Berners-Lee)
  40. Subject: Re: www @ nikhef
  41. Cc: a03@nikhef.nl
  42.  
  43. Hi,
  44.  
  45. There is a very preliminary version of xfind working on a very stupid set
  46. of helpfiles.
  47. These helpfiles are input to a VAX like help, so browsing with www
  48. does not give very useful information, I only want to show that
  49. the principle works.
  50.  
  51. If you want to try you may link NIKHEF into WWW with
  52.  
  53.     http://nic.nikhef.nl./user/a03/www/default/NikhefGuide.html
  54.  
  55. I now have 2 files which can be searched with keywords: the telephone
  56. directory and this set of helpfiles.
  57.  
  58. The http daemon calls the script WWWsh:
  59.  
  60. WWWsh
  61. =====
  62.  
  63. name=`echo $@ | awk -F? '{print $1}`
  64. keys=`echo $@ | awk -F? '{print $2}`
  65. name=`basename $name .html`
  66. /user/a03/bin/$name.sh $keys
  67.  
  68. which may call Phone.sh or Xfind.sh
  69.  
  70. Phone.sh
  71. ========
  72.  
  73. name=$1
  74. echo "<title> $name at NIKHEF</title>"
  75. echo "<h1> $name</h1>"
  76. grep -i $name /user/a03/www/default/phone.html
  77.  
  78. phone.html is a file which is generated every night from the finger
  79. information on our central server.
  80.  
  81. Xfind.sh
  82. ========
  83.  
  84. name=$1
  85. echo "<title> $name at XFIND </title>"
  86. echo "<h1> $name</h1>"
  87. #
  88. # Do not forget to put 
  89.  
  90. #    pass    /user/a03/www/xfind/*
  91. # in httpd.conf
  92. #
  93. cd /user/a03/www/xfind
  94. files=`echo $name | /usr/lib/refer/hunt -Fn -Ty Index`
  95. echo $files | sed -e "s/\///g" | awk '{for (i=1;i<=NF;i++) printf("<a  
  96. href=http://nic/user/a03/www/xfind/%s>%s</a><p>",$i,$i)}'
  97.  
  98. The helpfiles are in a different directory, which has to be mentioned
  99. in httpd.conf.
  100.  
  101. The index is made with the command
  102.  
  103.     /usr/lib/refer/mkey -w -f files | /usr/lib/refer/inv
  104.  
  105. files contains the names of the files to be indexed.
  106. This is a rather crude approach, since the index contains a lot of keywords,
  107. but again the first aim was to get something working.
  108.  
  109. I'll try to write down wy experiences with www in a more coherent way,
  110. until then I hope this information is of some help.
  111.  
  112. Regards, Willem
  113.